//
//  Appconfig.h
//  Project
//
//  Created by Suny on 14-8-11.
//  Copyright (c) 2014年 Suny. All rights reserved.
//

#pragma -mark
#pragma -mark 服务器地址

#define TESTVERSION

#define kShowIntroduceViewLoginCount 0

#define kOpenChatSdk

#undef  kBaseWebServiceUrl
#define kBaseWebServiceUrl @"http://182.92.99.17:8080/mimoo/api"

#pragma --
#pragma mark - xinge
#define _IPHONE80_ 80000 

#define kXinGeAppId 2200067667
#define kXinGeAppKey @"IYYS9Z2T354K"


#pragma --

//#pragma -mark APP Default value
//#undef  kPlatform
//#define kPlatform     @"IOS"
//
//#undef  kChannelId
//#define kChannelId    @"AppStore"
//#pragma -mark
//#pragma -mark 日志输出

/**
 * 0 代表Controller
 * 1 代表Business
 * 2 代表Service
 * 3 代表其他类型文件     除了Controller,bussiness与Service外的文件
 * 4 代表全部            即输出控制台又写文件
 * 5 代表只写文件
 * 6 代表所有文件只输出控制台
 */
#undef  kAppLogLevel
#define kAppLogLevel 6 

#define RONGCLOUD_IM_APPKEY    @"kj7swf8o7dw02" //这个AppKey值RongCloud实例。

#define kDefaultPortraitImageName @"default_portrait"

#define kDefaultHeaderImage @"uv_default_avatar.png"


#define kBoldFontName @"Helvetica-Bold"


//-----------UI-Macro Definination---------//
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
#define HEXCOLOR(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define IMAGENAEM(Value) [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:NSLocalizedString(Value, nil) ofType:nil]]

#define IMAGE_BY_NAMED(value) [UIImage imageNamed:NSLocalizedString((value), nil)]

#define HEXCOLOR(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


#define SCREEN_HEIGHT [[UIScreen mainScreen] applicationFrame].size.height
#define SCREEN_WIDTH  [[UIScreen mainScreen] applicationFrame].size.width

// block self
#define WEAKSELF __typeof(self) __weak weakSelf = self;
#define STRONGSELF __typeof(weakSelf) __strong strongSelf = weakSelf;

#define	prop_readonly( type, name )		property (nonatomic, readonly) type name
#define	prop_dynamic( type, name )		property (nonatomic, strong) type name
#define	prop_assign( type, name )		property (nonatomic, assign) type name
#define	prop_strong( type, name )		property (nonatomic, strong) type name
#define	prop_weak( type, name )			property (nonatomic, weak) type name
#define	prop_copy( type, name )			property (nonatomic, copy) type name
#define	prop_unsafe( type, name )		property (nonatomic, unsafe_unretained) type name

#import "NotificationNameDefine.h"
#import "WebServiceURLRelativePathDefine.h"



